200分==>ASP转换成HTML的代码?

来源:百度知道 编辑:UC知道 时间:2024/05/15 06:41:39
没有试过的,或者是不能很好转换的,请不要写了,写了也没有用,而且你也省事!如果可以的话,绝对是200分,只是不可以再多,不然2000都无所谓!
请不要写没有用的东西,谢谢合作,
就是一个网站都是HTML的格式

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%
Function GetPage(url)
'获得文件内容
dim Retrieval
Set Retrieval = CreateObject("Microsoft.XMLHTTP")
With Retrieval
.Open "Get", url, False ', "", ""
.Send
GetPage = BytesToBstr(.ResponseBody)
End With
Set Retrieval = Nothing
End Function

Function BytesToBstr(body)
dim objstream
set objstream = Server.CreateObject("adodb.stream")
objstream.Type = 1
objstream.Mode =3
objstream.Open
objstream.Write body
objstream.Position = 0
objstream.Type = 2
objstream.Charset = "GB2312"
BytesToBstr = objstream.ReadText
objstream.Close
set objstream = nothing
End Function

on error resume next
Url="http://www.sina.com